﻿Ext.define('BIM.store.User', {
    extend: 'Ext.data.Store',
    model: 'BIM.model.User',
    //autoLoad: true,
    pageSize: Twi.PageSize,    
    proxy: {
        type: 'ajax',
        url: Twi.Url,
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'totalCount',
            successProperty: 'success'
        },
        extraParams: {
            cn: 'PageCommon',
            mn: 'TAB',
            mn2: 'GetPagingDataByCondition',
            needPaging: true,
            data: Ext.encode({
                TableName: 'SM010-V1',//'SM010',
                OrderFields: 'FSORT',
                Condition:
                {
                    FIsDeleted: 0
                }
            })
        }
    }

});

